package icom.acm.util;


import icom.acm.util.spring.SpringFactory;


public class DBConfig {
	private String url;	
	private String username;
	private String password;
	
	private static DBConfig config;
	
	public DBConfig(String url, String username, String password){
		this.url = url;
		this.username = username;
		this.password = password;
	}
	
	public DBConfig(){
	}
	
	public static DBConfig newInstance(){
		SpringFactory sf = SpringFactory.newInstance();
		if (config==null)
			config = (DBConfig)sf.action(sf.bean, "DBConfig");
		return config;
	}
	

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
		
}
